import request from '@/utils/request'

//上传文件
export function commonUpload(blob) {
  const formData = new FormData();
  formData.append('file', blob);
  return request({
    url: '/common/upload',
    method: 'post',
    data: formData,
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  });
}
